package com.woniu.common.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * tb_jp_user_ext
 * @author 
 */
public class TbJpUserExt implements Serializable {
    private Integer id;

    /**
     * 投资金额
     */
    private BigDecimal investmentAmount;

    private Integer userid;

    /**
     * 收益分成
     */
    private BigDecimal sharing;

    /**
     * 银行卡号
     */
    private String bankcard;

    /**
     * 真实姓名
     */
    private String name;

    /**
     * 医院ID
     */
    private Integer hospitalid;

    /**
     * 科室id
     */
    private Integer departid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getInvestmentAmount() {
        return investmentAmount;
    }

    public void setInvestmentAmount(BigDecimal investmentAmount) {
        this.investmentAmount = investmentAmount;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public BigDecimal getSharing() {
        return sharing;
    }

    public void setSharing(BigDecimal sharing) {
        this.sharing = sharing;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getHospitalid() {
        return hospitalid;
    }

    public void setHospitalid(Integer hospitalid) {
        this.hospitalid = hospitalid;
    }

    public Integer getDepartid() {
        return departid;
    }

    public void setDepartid(Integer departid) {
        this.departid = departid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpUserExt other = (TbJpUserExt) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInvestmentAmount() == null ? other.getInvestmentAmount() == null : this.getInvestmentAmount().equals(other.getInvestmentAmount()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getSharing() == null ? other.getSharing() == null : this.getSharing().equals(other.getSharing()))
            && (this.getBankcard() == null ? other.getBankcard() == null : this.getBankcard().equals(other.getBankcard()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getHospitalid() == null ? other.getHospitalid() == null : this.getHospitalid().equals(other.getHospitalid()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInvestmentAmount() == null) ? 0 : getInvestmentAmount().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getSharing() == null) ? 0 : getSharing().hashCode());
        result = prime * result + ((getBankcard() == null) ? 0 : getBankcard().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getHospitalid() == null) ? 0 : getHospitalid().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", investmentAmount=").append(investmentAmount);
        sb.append(", userid=").append(userid);
        sb.append(", sharing=").append(sharing);
        sb.append(", bankcard=").append(bankcard);
        sb.append(", name=").append(name);
        sb.append(", hospitalid=").append(hospitalid);
        sb.append(", departid=").append(departid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}